
import TabLayout from '@/common/components/layouts/TabLayout'
import UserLayout from '@/common/components/layouts/UserLayout'
// 菜单路由
export const asyncRouterMap = [
    {
        path: '/dashboard/analysis',
        name: 'dashboard',
        meta: { title: '首页' },
        redirect: '/dashboard/analysis',
        component: TabLayout,
        children: [
            // {
            //     path: '/system',
            //     meta: { title: '系统管理', permission: [ 'system' ]},
            //     children: [
            //         {
            //             path: '/user',
            //             meta: { title: '人员管理', permission: [ 'user' ]},
            //             // component: User
            //         }
            //     ]
            // }
        ]
    }
]


// 基础路由
export const constantRouterMap = [
    {
        path: '/user',
        component: UserLayout,
        redirect: '/user/login',
        hidden: true,
        children: [
            {
                path: 'login',
                name: 'login',
                component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
            },
        ]
    }
]